package cn.zcib.film.bean;

import java.io.Serializable;

public class Role implements Serializable {
    private Integer rId;
    private String rCode;
    private String rName;
    private String rDesc;

    @Override
    public String toString() {
        return "Role{" +
                "rId=" + rId +
                ", rCode='" + rCode + '\'' +
                ", rName='" + rName + '\'' +
                ", rDesc='" + rDesc + '\'' +
                ", admin=" + admin +
                '}';
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    //一对多
    private Admin admin;

    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public String getrCode() {
        return rCode;
    }

    public void setrCode(String rCode) {
        this.rCode = rCode;
    }

    public String getrName() {
        return rName;
    }

    public void setrName(String rName) {
        this.rName = rName;
    }

    public String getrDesc() {
        return rDesc;
    }

    public void setrDesc(String rDesc) {
        this.rDesc = rDesc;
    }

}
